package com.cyt.work.wb.model.po;

import com.cyt.base.util.BaseUtil;
import com.cyt.base.util.DictCode;
import com.cyt.sys.model.po.SysUser;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 维保模块-品牌表实体类
 *
 * @author shengQiang Yu
 * @date 2019-11-28 9:12:41
 */
@Data
@NoArgsConstructor
@Table(name = "cyt_wb_brand")
public class WbBrand implements Serializable {

	/**
     * 主键ID
     */ 
	@Id
	private String id;

	/**
     * 应用id
     */ 
	@Column(name = "apply_id")
	private String applyId;

	/**
     * 品牌名称
     */ 
	@Column(name = "name")
	private String name;

	/**
     * 品牌分类id
     */ 
	@Column(name = "brand_type_id")
	private String brandTypeId;

	/**
     * 品牌编号
     */ 
	@Column(name = "brand_num")
	private String brandNum;

	/**
     * 生产商
     */ 
	@Column(name = "producter")
	private String producter;

	/**
     * 生产地址
     */ 
	@Column(name = "product_address")
	private String productAddress;

	/**
     * 备注信息
     */ 
	@Column(name = "remarks")
	private String remarks;

	/**
     * 排序
     */ 
	@Column(name = "sort")
	private Integer sort;

	/**
     * 删除标识
     */ 
	@Column(name = "remove_tag")
	private String removeTag;

	/**
     * 描述
     */ 
	@Column(name = "create_time")
	private Date createTime;

	/**
     * 创建人
     */ 
	@Column(name = "create_user")
	private String createUser;

	/**
     * 修改时间
     */ 
	@Column(name = "update_time")
	private Date updateTime;

	/**
     * 修改人
     */ 
	@Column(name = "update_user")
	private String updateUser;

	/**
	 * 创建对象
	 *
	 * @param sysUser 当前用户信息
	 * @author shengQiang Yu
	 * @date 2019-11-28 9:12:41
	 */
	public WbBrand(SysUser sysUser) {
		this.id = BaseUtil.uId();
		this.removeTag = DictCode.BASE_REMOVE_TAG_NORMAL;
		this.createTime = new Date();
		this.createUser = sysUser.getId();
		this.updateTime = new Date();
		this.updateUser = sysUser.getId();
	}
}